﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Daphne.GameShared;

namespace GameEngine.MoveHistory
{
    /// <summary>
    /// History model factory class
    /// </summary>
    internal static class HistoryModelFactory
    {
        /// <summary>
        /// Returns specific history model
        /// </summary>
        public static IMoveHistoryModel Create(enumHistoryModel eModelType)
        {
            switch (eModelType)
            {
                case enumHistoryModel.Linear:
                    return new LinearModeHistoryModel();
                case enumHistoryModel.Tree:
                    return new TreeMoveHistoryModel();
                default:
                    throw new Exception("Unknown move history model.");
            }
        }
    }
}
